package cn.wowjoy.pda.android_pharmacy.mvvm.presenter;

import java.util.ArrayList;
import java.util.List;

import cn.wowjoy.pda.android_pharmacy.R;
import cn.wowjoy.pda.android_pharmacy.common.core.BasePresenter;
import cn.wowjoy.pda.android_pharmacy.model.PharmacyInfo;
import cn.wowjoy.pda.android_pharmacy.mvvm.vm.InHospitalTaskViewModel;

/**
 * Created by sinyo on 2017/7/20.
 */

public class InHospitalTaskPresenter extends BasePresenter<InHospitalTaskViewModel> {
    @Override
    public void onCreatePresenter() {
         loadData(false);
    }

    @Override
    public void loadData(boolean ref) {
        List<PharmacyInfo> pharmacyInfoList=new ArrayList<>();
        pharmacyInfoList.add(new PharmacyInfo(R.mipmap.ic_launcher,"取药",context));
        pharmacyInfoList.add(new PharmacyInfo(R.mipmap.ic_launcher,"药品复核",context));
        pharmacyInfoList.add(new PharmacyInfo(R.mipmap.ic_launcher,"上架",context));
        viewModel.setData(pharmacyInfoList);
    }
}
